package cn.nebula.music.service;

import java.util.Set;

import cn.nebula.music.domain.User;

public interface UserService {
	public Set<User> findAllUsers() throws Exception;

	public Set<User> findAllUsersOfBT() throws Exception;

	public Set<User> findAllUsersWP() throws Exception;

	public User findUserByUsername(String username) throws Exception;

	public User findUserByPhone(String phone) throws Exception;

	public User findUserByEmail(String email) throws Exception;
	
	public Set<User> findUsersByRole(Integer roleId) throws Exception;

	public User findUserById(int id) throws Exception;

	public void addUser(User user) throws Exception;

	public void updateUser(User user) throws Exception;

	public boolean loginValidate(User user) throws Exception;

	public String registerValidate(User user) throws Exception;

	public void deleteUserById(Integer id) throws Exception;
}
